module('login',package.seeall)

function menuCallbackOpenPopup()
	print("i am pushed")
	
	MapManager.loadMap("map/pd_tilemap.tmx")
end

function showPanel(parent)
	local menuToolsItem = CCMenuItemImage:create("ui/btn-play-normal.png", "ui/btn-play-normal.png")
	menuToolsItem:setPosition(0, 0)
	menuToolsItem:registerScriptTapHandler(login.menuCallbackOpenPopup)
	menuTools = CCMenu:createWithItem(menuToolsItem)
	local itemWidth = menuToolsItem:getContentSize().width
	local itemHeight = menuToolsItem:getContentSize().height
	menuTools:setPosition(100 + itemWidth/2, 100 + itemHeight/2)
	parent:addChild(menuTools)
	
end